export default {
  onPageLoad(query) {
    //获取用户信息
    // const header = {
    //     'content-type': 'application/json',
    //     'token':app.state.access_token
    // };
    app.common.request({
        url: '/zgt//wx/auth/getUserInfo',
        method: 'GET',
        data:{
          uid:'10002'
        },
    }).then(rs => {
       $page.state.userId = rs.tifUid;
       setTimeout(()=>{
          $page.handler.initData();
       });
    });
  },
  onPageShow() {
    //console.log('---------> LifeCycle onPageShow')
  },
  onPageReady() {
    //console.log('---------> LifeCycle onPageReady')
  },
  onPageHide() {
    //console.log('---------> LifeCycle onPageHide')
  },
  onPageUnload() {
    //console.log('---------> LifeCycle onPageUnload')
  },
}